function postRequest(token,url, data) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: url,  
      header: { 
        'content-type': 'application/json',
        'Authorization':token,  
      },
      data:data,
      method: "post",
      responseType: 'text', 
      success:function(res){
        resolve(res.data);
      },
      fail:function(res){
        reject(res.data);
      }
    }); 
  });
 }
 module.exports = {
  postRequest
}